/*
 * 易族智汇（北京）科技有限公司 版权所有。
 * 未经许可，您不得使用此文件。
 * 官方地址：www.javamall.com.cn
 */
package com.enation.app.javashop.core.client.feignimpl.distribution;

import com.enation.app.javashop.client.distribution.DistributionSellerBillClient;
import com.enation.app.javashop.core.client.fallback.distribution.DistributionSellerBillClientFallbackFactory;
import com.enation.app.javashop.core.handler.FeignConfiguration;
import com.enation.app.javashop.model.distribution.dto.DistributionSellerBillDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author fk
 * @version v2.0
 * @Description: 分销结算单接口
 * @date 2018/9/2 19:45
 * @since v7.0.0
 */
@FeignClient(name = "distribution-service", fallbackFactory = DistributionSellerBillClientFallbackFactory.class,configuration = {FeignConfiguration.class})
public interface DistributionSellerBillClientFeignImpl extends DistributionSellerBillClient {


    /**
     * 获取某个周期的返现支出
     *
     * @param startTime 开始时间
     * @param endTime   开始时间
     * @return 周期内返现DTO
     */
    @Override
    @RequestMapping(value = "/client/distribution/seller/count", method = RequestMethod.POST)
    List<DistributionSellerBillDTO> countSeller(@RequestParam("start_time") Integer startTime, @RequestParam("end_time") Integer endTime);
}
